using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Local
{
    /// <summary>
    /// <para>Greater Than Frequency</para>
    /// <para>Evaluates on a cell-by-cell basis the number of times a set of rasters is greater than another raster.</para>
    /// <para>逐个像元评估一组栅格大于另一个栅格的次数。</para>
    /// </summary>    
    [DisplayName("Greater Than Frequency")]
    public class GreaterThanFrequency : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GreaterThanFrequency()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_value_raster">
        /// <para>Input value raster</para>
        /// <para>For each cell location in the input value raster, the number of occurrences (frequency) where a raster in the input list has a greater value is counted.</para>
        /// <para>对于输入值栅格中的每个像元位置，将计算输入列表中栅格具有较大值的出现次数（频率）。</para>
        /// </param>
        /// <param name="_in_rasters">
        /// <para>Input rasters</para>
        /// <para>The list of rasters that will be compared to the value raster.</para>
        /// <para>将与值栅格进行比较的栅格列表。</para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>For each cell in the output raster, the value represents the number of times that the corresponding cells in the list of rasters is greater than the value raster.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>对于输出栅格中的每个像元，该值表示栅格列表中相应像元大于栅格值的次数。</para>
        /// </xdoc></para>
        /// </param>
        public GreaterThanFrequency(object _in_value_raster, List<object> _in_rasters, object _out_raster)
        {
            this._in_value_raster = _in_value_raster;
            this._in_rasters = _in_rasters;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Greater Than Frequency";

        public override string CallName => "sa.GreaterThanFrequency";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_value_raster, _in_rasters, _out_raster, _process_as_multiband.GetGPValue()];

        /// <summary>
        /// <para>Input value raster</para>
        /// <para>For each cell location in the input value raster, the number of occurrences (frequency) where a raster in the input list has a greater value is counted.</para>
        /// <para>对于输入值栅格中的每个像元位置，将计算输入列表中栅格具有较大值的出现次数（频率）。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input value raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_value_raster { get; set; }


        /// <summary>
        /// <para>Input rasters</para>
        /// <para>The list of rasters that will be compared to the value raster.</para>
        /// <para>将与值栅格进行比较的栅格列表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input rasters")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_rasters { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>For each cell in the output raster, the value represents the number of times that the corresponding cells in the list of rasters is greater than the value raster.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>对于输出栅格中的每个像元，该值表示栅格列表中相应像元大于栅格值的次数。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        /// <summary>
        /// <para>Process as multiband</para>
        /// <para><xdoc>
        ///   <para>Specifies how the input multiband raster bands will be processed.</para>
        ///   <bulletList>
        ///     <bullet_item>Unchecked—Each band from a multiband raster input will be processed separately as a single band raster. This is the default.</bullet_item><para/>
        ///     <bullet_item>Checked—Each multiband raster input will be processed as a multiband raster. The operation will be performed for each band from one input using the corresponding band number from the other inputs.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定如何处理输入多波段栅格波段。</para>
        ///   <bulletList>
        ///     <bullet_item>未选中—多波段栅格输入中的每个波段将作为单波段栅格单独处理。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>选中—每个多波段栅格输入将作为多波段栅格进行处理。将使用来自其他输入的相应频段编号对一个输入的每个频段执行该操作。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Process as multiband")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _process_as_multiband_value _process_as_multiband { get; set; } = _process_as_multiband_value._false;

        public enum _process_as_multiband_value
        {
            /// <summary>
            /// <para>SINGLE_BAND</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SINGLE_BAND")]
            [GPEnumValue("false")]
            _false,

            /// <summary>
            /// <para>MULTI_BAND</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MULTI_BAND")]
            [GPEnumValue("true")]
            _true,

        }

        public GreaterThanFrequency SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}